-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/add plugin bc test #2902
base: alpha
Are you sure you want to change the base?
Feat/add plugin bc test #2902
Conversation
e3ec228
to
11e4190
Compare
$stmt->execute($_params); | ||
|
||
$errorInfo = $stmt->errorInfo(); | ||
if ($errorInfo[0] != 0000) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug to fix here ?
if ($errorInfo[0] !== '00000') {
Quand on envoi un paramètre qui n’existe pas dans la requète, ca ne passe pas dedans.
Le vrai code 00000 (5 zéro) et est une chaine de caractère. Là on pourrait retirer 3 zéros, ca ferai la même chose.
(voir test_query_with_bad_parameter
, qui correspond au comportement actuel, devrait probablement renvoyer une exception)
09ea249
to
f042fe1
Compare
Ici pour les workflow github on est dans un env de type docker on n'a pas besoin justement de ta PR sur le .env en mode php, il suffit d'utiliser les variables d'environnement pour générer le fichier common.config.php ... Tu pourrais séparer les 2 ? J'ai tenté il y a qq mois de faire passer les tests phpunit existant mais pas réussi, avec un workflow spécifique (sur mon repo pour l'instant): |
Ici on ne génère aucun fichier justement, j'utilise directement les variables d'environnements. Et là tout fonctionne. |
e318377
to
fb5fd52
Compare
fb5fd52
to
77dfdd5
Compare
Prévention des Breaking Change sur les signatures des méthodes de classes PHP.
Description
Permet de se prémunir de changements qui pourraient casser le code des plugins.
Vérifie les changements de visibilité, le typage, le nommage des méthodes en se basant sur un fichier généré grâce au code actuel.
Contient la PR sur l’ajout du .env et la réactivation des tests phpunit.
Suggested changelog entry
Add unit tests to prevent BC on PHP classes.
Related issues/external references
N/A
Types of changes
PR checklist